package tema13.Ejercicio10;

import java.awt.Graphics;
import java.util.Random;
import javax.swing.JPanel;

public class EJMiPanel extends JPanel {
	private int a, b, c, d;
	private Random r = new Random();

	public void paint(Graphics g) {
		super.paint(g);
		g.drawOval(a, b, c, d);
	}

	public void crear() {
		a = r.nextInt(100);
		b = r.nextInt(100);
		c = r.nextInt(100);
		d = r.nextInt(100);
	}

	public void setX(int n) {
		this.a = n;
	}

}
